/**
 * @class			Jx.data.Set
 * @description	creates cached data extracted from Jx.data.Table.
 */
Jx.declare('Jx.data.Set', {

	$extend: 'Jx.data.Table',

	tables: undefined,

	constructor: function(tables){

		if (!Jx.isArray(tables)){

			tables = Array.prototype.slice.call(arguments, 0);

		}

		var models = [];

		for(var table, l = tables.length; l--;){

			if (Jx.instanceOf(table = tables[l], 'Jx.data.Table')){

				models[l] = table.model;

			} else {

				models.splice(l, 1);

			}

		}

		this.$super([

			Jx.getConstructor('Jx.data.Model').createPseudoModel(models)

		]);

	}






});
